package com.design.command;

/**
 * @author leali
 * @title: ModifyNetCommand
 * @projectName design
 * @description: 修改命令类：具体命令
 * @date 2022/1/3 17:40
 */
public class ModifyNetCommand extends NetCommand {
    public ModifyNetCommand(String name) {
        super(name);
    }

    @Override
    public void execute(String args) {
        this.args = args;
        configOperator.modify(args);
    }

    @Override
    public void execute() {
        configOperator.modify(this.args);
    }
}
